<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      .outer {
        width: 400px;
        height: 400px;
        background-color: gray;
        text-align: center;
        line-height: 400px;
        font-size: 0;
      }
      span {
        font-size: 30px;
        background-color: orange;
        vertical-align: middle;
      }
      img {
        width: 150px;
        vertical-align: middle;
        background: red;
      }
    </style>
  </head>
  <body>
    <div class="outer">
      <span>文字居中ddx</span>
      <img src="./images/logo" alt="" />
    </div>
  </body>
</html>
